<table width="100%" align="center" cellpadding="0" cellspacing="0" id="judul">
  <tr align="center">
    <td width="100%" colspan="15"><h3>Rekapitulasi Ijin Pemakaian Daerah</h3></td>
  </tr>
  <tr align="center">
    <td colspan="15"><h4>Tahun <?= $tahun; ?></h4></td>
  </tr>
</table>
<p>&nbsp;</p>
<table width="100%" border="2" cellpadding="0" cellspacing="0">
<tr align="center">
    <td width="auto" rowspan="2">No</td>
    <td width="auto" rowspan="2">Nama Pemohon</td>
    <td width="auto" rowspan="2">Alamat Pemohon</td>
    <td width="auto" rowspan="2">Tanggal Permohonan</td>
    <td width="auto" rowspan="2">Tanggal Perijinan</td>
    <td width="auto" rowspan="2">Nomor Ijin Surat</td>
    <td colspan="3">Lokasi</td>
    <td width="auto" rowspan="2">Pemanfaatan</td>
    <td width="auto" rowspan="2">Luas (m2)</td>
    <td colspan="2">Tanggal Perijinan</td>
    <td width="auto" rowspan="2">Retribusi</td>
    <td width="auto" rowspan="2">Tanggal Pembayaran</td>
  </tr>
  <tr align="center">
    <td width="auto">Lokasi</td>
    <td width="auto">Kecamatan</td>
    <td width="auto">Kelurahan / Desa</td>
    <td width="auto">Tanggal Mulai Perijinan</td>
    <td width="auto">Tanggal Akhir Perijinan</td>
  </tr>
  <? $no = 1;
 	foreach($ipkd -> result() as $row){
 	?>
  <tr>
    <td><?= $no; ?></td>
    <td><?= $row->NAMA_PEMOHON; ?></td>
    <td><?= $row->ALAMAT_PEMOHON; ?></td>
    <td><?= $row->TGL_PERMOHONAN; ?></td>
    <td><?= $row->TGL_IJIN; ?></td>
    <td><?= $row->NO_IJIN; ?></td>
    <td><?= $row->LOKASI; ?></td>
    <td><?= $row->KECAMATAN; ?></td>
    <td><?= $row->KELURAHAN; ?></td>
    <td><?= $row->PEMANFAATAN; ?></td>
    <td><?= $row->LUAS; ?></td>
    <td><?= $row->MULAI_PERIJINAN; ?></td>
    <td><?= $row->SAMPAI_PERIJINAN; ?></td>
    <td><?= $row->RETRIBUSI; ?></td>
    <td><?= $row->TGL_PEMBAYARAN; ?></td>
  </tr>
  <? $no++;}?>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  </table>
  <table width="100%">
  <tr>
    <td width="50%" colspan="10">Target Retribusi Tahun <?= $tahun; ?></td>
    <td width="50%" colspan="2">: Rp <?= $jumlah; ?></td>
  </tr>
  <tr>
    <td width="50%" colspan="10">Terbilang</td>
    <td width="50%" colspan="2">: <?= $terbilang; ?> rupiah</td>
  </tr>
</table>
<p>&nbsp;</p>
